package com.jinhongone.pattern.behavior.observer.JdkExample;

/**
 * @author jinho
 * @className Test
 * @description 测试类
 * @date 2025/4/16 16:35
 */
public class Test {

    public static void main(String[] args) {
        Thief zs = new Thief("张三");
        Police ls = new Police("李四");
        //订阅操作
        zs.addObserver(ls);
        zs.steal();
    }
}
